package com.kifas.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "trx_stok")
public class TransactionStokEntity implements Serializable {

	private static final long serialVersionUID = 2681630497808113016L;

	@Id
	@GeneratedValue
	@Column(name = "id_trx_stok")
	private Long idTransactionStok;

	private String reference;
	@Column(name="id_barang")
	private String idBarang;
	
	@Column(name="id_gudang")
	private String idGudang;

	@Column(name = "input_flag", nullable = false)
	private boolean inputFlag;

	private Long qty;

	@Temporal(TemporalType.TIMESTAMP)
	private Date tanggal;

	@Column(nullable = false)
	private boolean count;

	@Column(name = "bulan_kadaluarsa")
	private String bulanKadaluarsa;

	@Column(name = "is_canceled", nullable = false)
	private boolean canceled;

	public TransactionStokEntity() {
	}

	public TransactionStokEntity(Long idTransactionStok, String reference, 
			String idBarang, String idSatuan, String idGudang,
			boolean inputFlag, Long qty, Date tanggal, boolean count,
			String bulanKadaluarsa) {
		this.idTransactionStok = idTransactionStok;
		this.reference = reference;
		this.idBarang = idBarang;
		this.idGudang = idGudang;
		this.inputFlag = inputFlag;
		this.qty = qty;
		this.tanggal = tanggal;
		this.bulanKadaluarsa = bulanKadaluarsa;
		this.count = count;
	}

	public Long getIdTransactionStok() {
		return idTransactionStok;
	}

	public void setIdTransactionStok(Long idTransactionStok) {
		this.idTransactionStok = idTransactionStok;
	}

	public String getReference() {
		return reference;
	}

	public void setReference(String reference) {
		this.reference = reference;
	}
	
	public String getIdBarang() {
		return idBarang;
	}

	public void setIdBarang(String idBarang) {
		this.idBarang = idBarang;
	}

	public String getIdGudang() {
		return idGudang;
	}

	public void setIdGudang(String idGudang) {
		this.idGudang = idGudang;
	}

	public boolean isInputFlag() {
		return inputFlag;
	}

	public void setInputFlag(boolean inputFlag) {
		this.inputFlag = inputFlag;
	}

	public Long getQty() {
		return qty;
	}

	public void setQty(Long qty) {
		this.qty = qty;
	}

	public Date getTanggal() {
		return tanggal;
	}

	public void setTanggal(Date tanggal) {
		this.tanggal = tanggal;
	}

	public boolean isCount() {
		return count;
	}

	public void setCount(boolean count) {
		this.count = count;
	}

	public String getBulanKadaluarsa() {
		return bulanKadaluarsa;
	}

	public void setBulanKadaluarsa(String bulanKadaluarsa) {
		this.bulanKadaluarsa = bulanKadaluarsa;
	}

	public boolean isCanceled() {
		return canceled;
	}

	public void setCanceled(boolean canceled) {
		this.canceled = canceled;
	}

}
